package com.ctms.system.service.impl;

import com.ctms.system.dao.CourseScoreMapper;
import com.ctms.system.domain.CourseDO;
import com.ctms.system.domain.UserDO;
import com.ctms.system.service.StudentScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudentScoreServiceImpl implements StudentScoreService {

    @Autowired
    CourseScoreMapper courseScoreMapper;

    @Override
    public List<UserDO> selectAllStuScore(Map<String, Object> map) {
        return courseScoreMapper.selectAllStuScore(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return courseScoreMapper.countAllScore(map);
    }

    @Override
    public List<CourseDO> selectCourseByTea(Integer loginId) {
        return courseScoreMapper.selectCourseByTea(loginId);
    }

    @Override
    public List<UserDO> exportScoreByClass(String condition) {
        return courseScoreMapper.exportScoreByClass(condition);
    }

    @Override
    public List<UserDO> exportScoreByCourse(String condition) {
        return courseScoreMapper.exportScoreByCourse(condition);
    }

    @Override
    public List<UserDO> exportScore() {
        return courseScoreMapper.exportScore();
    }
}
